#!/bin/zsh
#
#(make sure the right shell will be used)
#$ -S /bin/zsh
#
#execute the job from the current directory and not relative to your home directory
#$ -cwd

# Work only on SL5 (ilc soft v01-16-01 and AHCAL2012 CALICE software)
# sld5 for bird on NAF2, and sl5 on NAF1
#$ -l arch=amd64
#$ -l os=sld5

#set the email address
#$ -M shaojun@mail.desy.de
#
#send email when job aborts or when job ends
#$ -m ae

###==============================================================


echo "##########################################################################
##"
echo "                             System information"
echo "                             =================="

echo "Host:"
hostname -f

echo "CPU(s):"
cat /proc/cpuinfo | grep "model name" | cut -b 14-

echo "RAM:"
cat /proc/meminfo | grep "MemTotal" | cut -b 10-

echo "Swap:"
cat /proc/meminfo | grep "SwapTotal" | cut -b 11-

echo "##########################################################################
##"
echo

echo $PWD
ini glite
./myMarlin Reco_EPT_##[[RUN_NUMBER]].xml
